package excercise;

import java.util.Scanner;

public class EX01_024 {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int number = 0;
		int result = 0;
		boolean b = true;
		
		do {
			System.out.print("숫자를 입력하세요 : ");
			number = sc.nextInt();
			if(number <1 || number >= 10) {
				System.out.println("잘못 입력하셨습니다!!");
			} else { break; }
		} while(b);
		
		System.out.println("☆☆☆   " + number + " 단 ☆☆☆");
		for(int i = 1; i <= 9; ++i) {
			result = number * i;
			System.out.println(number + "    X    " + i + "    =    " + result);
		}
	}
}